// 

const path = require('path');

let p = path.resolve('d:/Mycode/web-java-script/node.js/nodejs/path', './path1.js');
console.log(p);

p = path.resolve('d:/Mycodes/web-java-script/node.js', 'd:/Mycode/hello.txt');
console.log(p);

p = path.resolve('wwwroot', 'static_files/png/', '../gif/image.gif');
console.log(p);